package cn.juque.workflow.api.dto.processinfo;

import cn.juque.common.abstracts.AbstractRequestDTO;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * @author juque
 * @version 1.0.0
 * <ul>
 *     <li>ProcessDeployParamDTO</li>
 * </ul>
 * @date 2023-01-27 16:36:36
 **/
@Data
public class ProcessDeployParamDTO extends AbstractRequestDTO {

    /**
     * 文件名称
     */
    @NotEmpty(message = "文件名不能为空")
    @Size(message = "流程名称不能超过{max}个字符", max = 100)
    private String fileName;

    /**
     * 文件base64
     */
    @NotEmpty(message = "流程内容不能为空")
    private String content;
}
